<?php

/**
 * @author Penis of world
 * @copyright 2012
 */

require('classes/Conection.php');

class Crud{
	public $conn;
	public function __construct(){
			$this->conn = new Conection();
	}
	public function selecionar(){
			$sql = "select * from artistas";
			$rs = mysql_db_query($this->conn->dataBase,$sql);			
			
			while($row=mysql_fetch_object($rs)){
				echo $row->id."</br>";				
				echo $row->artista."</br>";
				echo $row->titulo."</br>";	
				echo "</br>";
			}
		}	
		
}
$obj = new Crud();
$obj->selecionar();

?>